package com.example.nio.commons;


import io.netty.channel.Channel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 客服
 */
@SuppressWarnings("serial")
@NoArgsConstructor
@Data
@Accessors(chain = true)
public class Agent {
    private Integer id;//id
    private String agent;//客服号
    private String nickname;//昵称
    private Integer state;//状态 1为在线 0为忙碌
    private String department;//对应组名
    private Integer checkUser;//正在聊天人数;
    private Channel channel;//通道

    @Override
    public String toString() {
        return "Agent{" +
                "id=" + id +
                ", agent='" + agent + '\'' +
                ", nickname='" + nickname + '\'' +
                ", state=" + state +
                ", department='" + department + '\'' +
                ", checkUser=" + checkUser +
                ", channel=" + channel +
                '}';
    }
}
